package com.wuyan.locationdog.adapter

import android.widget.ImageView
import android.widget.TextView
import androidx.annotation.LayoutRes
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.wuyan.locationdog.R
import com.arcsoft.commonbase.bean.SceneBean


class SceneListAdapter(@LayoutRes layoutResId: Int, data: MutableList<SceneBean>?) :
    BaseQuickAdapter<SceneBean, BaseViewHolder>(layoutResId, data) {


    override fun convert(holder: BaseViewHolder, item: SceneBean) {
        holder.apply {
            getView<ImageView>(R.id.ivType).setImageResource(item.res)
            getView<TextView>(R.id.title).setText(item.title)
            getView<TextView>(R.id.subTitle).setText(item.subTitle)

        }
    }
}


